import request from '@/router/axios'

export function fetchHisStorehouseList(query) {
  return request({
    url: '/his/hisstorehouse/page',
    method: 'get',
    params: query
  })
}

export function addHisStorehouseObj(obj) {
  return request({
    url: '/his/hisstorehouse',
    method: 'post',
    data: obj
  })
}

export function getHisStorehouseObj(id) {
  return request({
    url: '/his/hisstorehouse/' + id,
    method: 'get'
  })
}

export function delHisStorehouseObj(id) {
  return request({
    url: '/his/hisstorehouse/' + id,
    method: 'delete'
  })
}

export function putHisStorehouseObj(obj) {
  return request({
    url: '/his/hisstorehouse',
    method: 'put',
    data: obj
  })
}
